//
//  HMBaseViewController.m
//  HMDemo
//
//  Created by mengxiangyu on 2017/6/15.
//  Copyright © 2017年 mengxiangyu. All rights reserved.
//

#import "HMBaseViewController.h"

@interface HMBaseViewController ()<UIGestureRecognizerDelegate>

@end

@implementation HMBaseViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        _notification = [NSNotificationCenter defaultCenter];
    }
    return self;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
    // 设置所有 ViewController 背景色
    self.view.backgroundColor = Color_ControllerView;
    
    self.navigationController.interactivePopGestureRecognizer.enabled = YES;      // 手势有效设置为YES  无效为NO
    self.navigationController.interactivePopGestureRecognizer.delegate = self;    // 手势的代理设置为self
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc {
    [_notification removeObserver:self];
}

@end
